// 分类类型
export interface CategoryType {
  id?: number;
  name?: string;
  sort?: number;
  status?: number;
}

export interface CategoriesResponse extends ResponseData {
  data: CategoryType[];
}

export interface CategoryResponse extends ResponseData {
  data: CategoryType;
}

export interface CategoryEditResponse extends ResponseData {
  data: boolean;
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}
